package com.lyf.jvm.learn.atsgg.classes.classstructure;

/**
 * @author LYF
 * @date 2022/7/2
 */
public class SimpleStrSample {
    public static void main(String[] args) {
        String str1 = "hello";
        String str2 = new String("hello");
        String str3 = "hello";
        System.out.println((str1==str2)+":"+(str1==str3));//false:true

    }
}
